package cn.myjerry.server.demo2;

/**
 * 抽象成一个父类
 * @author Jerry
 *
 */

public abstract class Servlet {
	public void service(Request req, Response res) throws Exception {
		this.doGet(req, res);
		this.doPost(req, res);
	}
	public abstract void doGet(Request req, Response res) throws Exception;
	public abstract void doPost(Request req, Response res) throws Exception;
}
